.class Lcom/waiqin365/lightapp/chexiao/ec;
.super Landroid/os/Handler;


# instance fields
.field private a:Ljava/lang/ref/WeakReference;


# direct methods
.method public constructor <init>(Lcom/waiqin365/lightapp/chexiao/CXTHActivity;)V
    .locals 1

    invoke-direct {p0}, Landroid/os/Handler;-><init>()V

    new-instance v0, Ljava/lang/ref/WeakReference;

    invoke-direct {v0, p1}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V

    iput-object v0, p0, Lcom/waiqin365/lightapp/chexiao/ec;->a:Ljava/lang/ref/WeakReference;

    return-void
.end method


# virtual methods
.method public handleMessage(Landroid/os/Message;)V
    .locals 9

    const/4 v5, 0x0

    const/4 v8, 0x0

    const/16 v7, 0x8

    iget-object v0, p0, Lcom/waiqin365/lightapp/chexiao/ec;->a:Ljava/lang/ref/WeakReference;

    invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/waiqin365/lightapp/chexiao/CXTHActivity;

    if-nez v1, :cond_1

    :cond_0
    :goto_0
    return-void

    :cond_1
    invoke-virtual {v1}, Lcom/waiqin365/lightapp/chexiao/CXTHActivity;->dismissProgressDialog()V

    iget v0, p1, Landroid/os/Message;->what:I

    packed-switch v0, :pswitch_data_0

    :pswitch_0
    goto :goto_0

    :pswitch_1
    iget-object v0, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    move-object v6, v0

    check-cast v6, Lcom/waiqin365/lightapp/chexiao/b/a/as;

    invoke-virtual {v6}, Lcom/waiqin365/lightapp/chexiao/b/a/as;->b()Z

    move-result v0

    if-eqz v0, :cond_5

    const-string/jumbo v0, "1"

    iget-object v2, v6, Lcom/waiqin365/lightapp/chexiao/b/a/as;->b:Ljava/lang/String;

    invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_5

    const/4 v0, 0x1

    invoke-static {v1, v0}, Lcom/waiqin365/lightapp/chexiao/CXTHActivity;->a(Lcom/waiqin365/lightapp/chexiao/CXTHActivity;Z)Z

    iget-object v0, v6, Lcom/waiqin365/lightapp/chexiao/b/a/as;->d:Ljava/lang/String;

    iget-object v2, v6, Lcom/waiqin365/lightapp/chexiao/b/a/as;->e:Ljava/lang/String;

    invoke-static {v1, v0, v2}, Lcom/waiqin365/lightapp/chexiao/CXTHActivity;->a(Lcom/waiqin365/lightapp/chexiao/CXTHActivity;Ljava/lang/String;Ljava/lang/String;)V

    iget-boolean v0, v6, Lcom/waiqin365/lightapp/chexiao/b/a/as;->f:Z

    if-eqz v0, :cond_2

    new-instance v0, Lcom/waiqin365/compons/view/c;

    const-string/jumbo v2, ""

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v4, v6, Lcom/waiqin365/lightapp/chexiao/b/a/as;->e:Ljava/lang/String;

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    const v4, 0x7f0807ff

    invoke-virtual {v1, v4}, Lcom/waiqin365/lightapp/chexiao/CXTHActivity;->getString(I)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    sget v4, Lcom/waiqin365/compons/view/c;->b:I

    invoke-direct/range {v0 .. v5}, Lcom/waiqin365/compons/view/c;-><init>(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;ILcom/waiqin365/compons/view/d;)V

    invoke-virtual {v0}, Lcom/waiqin365/compons/view/c;->show()V

    :cond_2
    iget-boolean v0, v6, Lcom/waiqin365/lightapp/chexiao/b/a/as;->g:Z

    if-eqz v0, :cond_3

    new-instance v0, Lcom/waiqin365/compons/view/c;

    const-string/jumbo v2, ""

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v4, v6, Lcom/waiqin365/lightapp/chexiao/b/a/as;->e:Ljava/lang/String;

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    const v4, 0x7f080800

    invoke-virtual {v1, v4}, Lcom/waiqin365/lightapp/chexiao/CXTHActivity;->getString(I)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    sget v4, Lcom/waiqin365/compons/view/c;->b:I

    invoke-direct/range {v0 .. v5}, Lcom/waiqin365/compons/view/c;-><init>(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;ILcom/waiqin365/compons/view/d;)V

    invoke-virtual {v0}, Lcom/waiqin365/compons/view/c;->show()V

    :cond_3
    iget-object v0, v6, Lcom/waiqin365/lightapp/chexiao/b/a/as;->h:Ljava/util/List;

    invoke-static {v1, v0}, Lcom/waiqin365/lightapp/chexiao/CXTHActivity;->a(Lcom/waiqin365/lightapp/chexiao/CXTHActivity;Ljava/util/List;)V

    invoke-static {v1}, Lcom/waiqin365/lightapp/chexiao/CXTHActivity;->o(Lcom/waiqin365/lightapp/chexiao/CXTHActivity;)Z

    move-result v0

    if-nez v0, :cond_4

    invoke-static {v1}, Lcom/waiqin365/lightapp/chexiao/CXTHActivity;->p(Lcom/waiqin365/lightapp/chexiao/CXTHActivity;)V

    :cond_4
    invoke-static {v1}, Lcom/waiqin365/lightapp/chexiao/CXTHActivity;->q(Lcom/waiqin365/lightapp/chexiao/CXTHActivity;)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0, v8}, Landroid/view/View;->setVisibility(I)V

    invoke-static {v1}, Lcom/waiqin365/lightapp/chexiao/CXTHActivity;->r(Lcom/waiqin365/lightapp/chexiao/CXTHActivity;)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0, v7}, Landroid/view/View;->setVisibility(I)V

    goto/16 :goto_0

    :cond_5
    const-string/jumbo v0, "2"

    iget-object v2, v6, Lcom/waiqin365/lightapp/chexiao/b/a/as;->b:Ljava/lang/String;

    invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_6

    invoke-static {v1}, Lcom/waiqin365/lightapp/chexiao/CXTHActivity;->q(Lcom/waiqin365/lightapp/chexiao/CXTHActivity;)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0, v7}, Landroid/view/View;->setVisibility(I)V

    invoke-static {v1}, Lcom/waiqin365/lightapp/chexiao/CXTHActivity;->r(Lcom/waiqin365/lightapp/chexiao/CXTHActivity;)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0, v8}, Landroid/view/View;->setVisibility(I)V

    invoke-static {v1}, Lcom/waiqin365/lightapp/chexiao/CXTHActivity;->s(Lcom/waiqin365/lightapp/chexiao/CXTHActivity;)Lcom/waiqin365/base/login/mainview/TitleBar;

    move-result-object v0

    iget-object v0, v0, Lcom/waiqin365/base/login/mainview/TitleBar;->h:Landroid/view/View;

    invoke-virtual {v0, v7}, Landroid/view/View;->setVisibility(I)V

    invoke-static {}, Lcom/waiqin365/lightapp/chexiao/d/a;->k()V

    goto/16 :goto_0

    :cond_6
    iget-object v0, v6, Lcom/waiqin365/lightapp/chexiao/b/a/as;->c:Ljava/lang/String;

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_7

    const v0, 0x7f08013b

    invoke-virtual {v1, v0}, Lcom/waiqin365/lightapp/chexiao/CXTHActivity;->getString(I)Ljava/lang/String;

    :cond_7
    invoke-static {v1}, Lcom/waiqin365/lightapp/chexiao/CXTHActivity;->o(Lcom/waiqin365/lightapp/chexiao/CXTHActivity;)Z

    move-result v0

    if-nez v0, :cond_0

    iget v0, v6, Lcom/waiqin365/lightapp/chexiao/b/a/as;->a:I

    invoke-virtual {v1, v0}, Lcom/waiqin365/lightapp/chexiao/CXTHActivity;->showToast(I)V

    goto/16 :goto_0

    :pswitch_2
    iget-object v0, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast v0, Lcom/waiqin365/lightapp/chexiao/b/a/bq;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/chexiao/b/a/bq;->b()Z

    move-result v2

    if-eqz v2, :cond_9

    const-string/jumbo v2, "1"

    iget-object v3, v0, Lcom/waiqin365/lightapp/chexiao/b/a/bq;->b:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_9

    const v0, 0x7f080718

    invoke-virtual {v1, v0}, Lcom/waiqin365/lightapp/chexiao/CXTHActivity;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v1, v0}, Lcom/waiqin365/lightapp/chexiao/CXTHActivity;->showToast(Ljava/lang/String;)V

    invoke-static {v1}, Lcom/waiqin365/base/db/jxccache/f;->a(Landroid/content/Context;)Lcom/waiqin365/base/db/jxccache/f;

    move-result-object v0

    invoke-static {v1}, Lcom/waiqin365/lightapp/chexiao/CXTHActivity;->f(Lcom/waiqin365/lightapp/chexiao/CXTHActivity;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v2}, Lcom/waiqin365/base/db/jxccache/f;->h(Ljava/lang/String;)Z

    invoke-static {v1}, Lcom/waiqin365/base/db/jxccache/f;->a(Landroid/content/Context;)Lcom/waiqin365/base/db/jxccache/f;

    move-result-object v0

    invoke-static {v1}, Lcom/waiqin365/lightapp/chexiao/CXTHActivity;->f(Lcom/waiqin365/lightapp/chexiao/CXTHActivity;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v2}, Lcom/waiqin365/base/db/jxccache/f;->f(Ljava/lang/String;)Z

    new-instance v0, Landroid/content/Intent;

    invoke-static {v1}, Lcom/waiqin365/lightapp/chexiao/CXTHActivity;->t(Lcom/waiqin365/lightapp/chexiao/CXTHActivity;)Landroid/content/Context;

    move-result-object v2

    const-class v3, Lcom/waiqin365/lightapp/chexiao/CXRecordsListTHActy;

    invoke-direct {v0, v2, v3}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    invoke-static {v1}, Lcom/waiqin365/lightapp/chexiao/CXTHActivity;->u(Lcom/waiqin365/lightapp/chexiao/CXTHActivity;)Landroid/content/Context;

    move-result-object v2

    invoke-virtual {v2, v0}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V

    invoke-static {v1}, Lcom/waiqin365/lightapp/chexiao/CXTHActivity;->v(Lcom/waiqin365/lightapp/chexiao/CXTHActivity;)Z

    move-result v0

    if-eqz v0, :cond_8

    invoke-virtual {v1}, Lcom/waiqin365/lightapp/chexiao/CXTHActivity;->finish()V

    goto/16 :goto_0

    :cond_8
    invoke-static {}, Ljava/util/UUID;->randomUUID()Ljava/util/UUID;

    move-result-object v0

    invoke-virtual {v0}, Ljava/util/UUID;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v1, v0}, Lcom/waiqin365/lightapp/chexiao/CXTHActivity;->a(Lcom/waiqin365/lightapp/chexiao/CXTHActivity;Ljava/lang/String;)Ljava/lang/String;

    invoke-static {v1}, Lcom/waiqin365/lightapp/chexiao/CXTHActivity;->c(Lcom/waiqin365/lightapp/chexiao/CXTHActivity;)V

    invoke-static {v1}, Lcom/waiqin365/lightapp/chexiao/CXTHActivity;->d(Lcom/waiqin365/lightapp/chexiao/CXTHActivity;)V

    goto/16 :goto_0

    :cond_9
    iget-object v2, v0, Lcom/waiqin365/lightapp/chexiao/b/a/bq;->c:Ljava/lang/String;

    invoke-static {v2}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v3

    if-eqz v3, :cond_a

    iget v0, v0, Lcom/waiqin365/lightapp/chexiao/b/a/bq;->a:I

    invoke-virtual {v1, v0}, Lcom/waiqin365/lightapp/chexiao/CXTHActivity;->showToast(I)V

    goto/16 :goto_0

    :cond_a
    invoke-virtual {v1, v2}, Lcom/waiqin365/lightapp/chexiao/CXTHActivity;->showToast(Ljava/lang/String;)V

    goto/16 :goto_0

    :pswitch_data_0
    .packed-switch 0x1001
        :pswitch_1
        :pswitch_0
        :pswitch_2
    .end packed-switch
.end method
